package com.tao.lab.power.usb;

import android.content.Context;
import android.hardware.usb.UsbManager;

import com.tao.lab.power.usb.driver.UsbSerialDevice;
import com.tao.lab.power.usb.driver.UsbSerialProber;
import com.tao.lab.power.usb.model.DeviceType;

/**
 * @ProjectName: lab
 * @Package: com.tao.lab.power.usb
 * @ClassName: UsbApp
 * @Description: java类作用描述
 * @Author: wangxf
 * @CreateDate: 2022/5/13 11:03
 * @UpdateUser: 更新者
 * @UpdateDate: 2022/5/13 11:03
 * @UpdateRemark: 更新说明
 * @Version: 1.0
 */
class UsbApp {
    public static void main(String[] args) {
        UsbManager mUsbManager = (UsbManager) getContext().getSystemService(Context.USB_SERVICE);

        ApiEyeLeftDevice apiEyeLeftDevice = new ApiEyeLeftDevice();
        UsbSerialDevice eyeLeftDevice = new UsbSerialDevice(DeviceType.SERIAL_9221, mUsbManager, UsbSerialProber.getDefaultProber()
                ,
                apiEyeLeftDevice, 9600, 0);

        eyeLeftDevice.writeInitDataFixedSend();

    }

    private static Context getContext() {
        return null;
    }
}
